﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Menu.ascx.cs" Inherits="module_Menu" %>

<%
    ChanelBusiness cb = new ChanelBusiness();
    ArrayList items = cb.Menu();
    if (items != null)
    {
        ChannelesEntities item = null;
        Response.Write("<ul>");
        for (int i = 0; i < items.Count; i++)
        {
            item = (ChannelesEntities)items[i];
            Response.Write("<li><a href=\"Default.aspx?cid="+item._id+"\">");
            Response.Write(item._name +"</a></li>");
        }
        Response.Write("</ul>");
    }
     %>